//
//  ContactModel.swift
//  Contract
//
//  Created by henaihan on 2017/11/15.
//  Copyright © 2017年 henaihan. All rights reserved.
//

import UIKit
class ContactModel: NSObject {
    var pic: String!
    var name: String!
    
    override init() {
        super.init()
    }
    init(dic:[String: AnyObject]) {
        super.init()
        self.setValuesForKeys(dic)
    }
    
    class func initWithAvatar(_ avatar: NSString,name: NSString) -> ContactModel{
        let model = ContactModel()
        model.name = name as String!
        model.pic = avatar as String!
        return model
    }
}
